package com.wwj.core.system.entity;


import com.wwj.framework.entity.BaseUUIDEntity;

import java.util.Date;
import java.util.List;

/**
 * Created by xya on 16-10-24.
 */
public class User extends BaseUUIDEntity {

    private static final long serialVersionUID = 2676050581542617930L;

    private String employeeNo;
    private String account;
    private String name;
    private String phone;
    private String password;

    /**
     * 是否超级管理员（默认为0）
     */
    private Integer isSuperAdmin = 0;

    /**
     * 状态（1：正常，2：取消）
     */
    private Integer status = 1;
    /**
     * 是否删除标识
     * 0：未删除
     * 1：已删除
     */
    private Integer deleted = 0;

    private Date createTime;

    private Date updateTime;
    /**
     * 1:公司用户,2:商家用户
     */
    private Integer type = 2;
    /**
     * 微信openid
     */
    private String openId;

    private List<Role> roles;

    private Integer[] roleIds;

    private Integer barId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getBarId() {
        return barId;
    }

    public void setBarId(Integer barId) {
        this.barId = barId;
    }

    public User() {
    }

    public User(String phone, String password) {
        this.phone = phone;
        this.password = password;
    }

    public String getEmployeeNo() {
        return employeeNo;
    }

    public void setEmployeeNo(String employeeNo) {
        this.employeeNo = employeeNo;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getIsSuperAdmin() {
        return isSuperAdmin;
    }

    public void setIsSuperAdmin(Integer isSuperAdmin) {
        this.isSuperAdmin = isSuperAdmin;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Integer[] getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(Integer[] roleIds) {
        this.roleIds = roleIds;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}
